package telepasea.app;

import java.util.*;

public class UserProfile {
	private String name;
	private String regId;
	private String number;
	private int gender; // 0:default, 1:male, 2:female
	private Calendar birth;
	// private String profileImage; //url

	public UserProfile(String number, String reg_id) {
		this.number = number;
		this.regId = reg_id;
	}
	public UserProfile() {
	
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setGender(int gender) {
		this.gender = gender;
	}

	public void setBirth(Calendar birth) {
		this.birth = birth;
	}

	public String getName() {
		return name;
	}

	public String getNumber() {
		return number;
	}

	public int getGender() {
		return gender;
	}

	public Calendar getBirth() {
		return birth;
	}

	public String getRegId() {
		return regId;
	}

	public String getStringBirth() {
		return "" + birth.get(Calendar.YEAR) + "-"
				+ (birth.get(Calendar.MONTH) + 1) + "-"
				+ birth.get(Calendar.DATE);
	}
}
